package com.foodservice.ajax;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class SuggestionAction extends ActionSupport {

	String query;
	List<String> result;

	public List<String> getResult() {
		return result;
	}

	public void setResult(List<String> result) {
		this.result = result;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		System.out.println(query);
		result = new ArrayList<String>();
		result.add("aa");
		result.add("bb");
		return SUCCESS;
	}
}
